#include <iostream>
#include <QCoreApplication>
using namespace std;
int main()
{
  int A;
cout <<"Vvedite chislo: ";
cin >> A;

  if(A>0)
cout <<A+1<< endl;
  else
    if(A<0)
      cout <<A-2<<endl;
    else
     cout << 10<<endl;

  return 0;
}
